<?php $this->load->view('_header') ?>

<script language="javascript" type="text/javascript" src="<?php echo site_url('js/formValidator_min.js')?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo site_url('js/formValidatorRegex.js')?>"></script>
<div class="Main">
<div id="flightleft">
	<?php $this->load->view('leftmenu') ?>
</div>

<div id="flightright" style="height:450px;padding-top:20px">
	<span class="tiptitle"><?=lang("MyAccount")?></span>
	<?php
	echo form_open("order/doeModifyinfo",array("id" =>"forminfo"));
	?>
	<table >
		<tr height=36>
			<td width=156 align="right" >*<?=lang("r_Username")?>:&nbsp;&nbsp;</td>
			<td width=200 ><?=$txuseraccount ?></td>
			<td width=420 ><div id="txuseraccountTip"></div></td>
		</tr>
		
		<tr height=36>
			<td width=156 align="right" >*<?=lang("r_Name")?>:&nbsp;&nbsp;</td>
			<td ><input type=text id="txusername" name="username" class="txd" value="<?=$username ?>" /></td>
			<td><div id="txusernameTip"></div></td>
		</tr>
		
		
		<tr height=36>
			<td width=156 align="right" ><?=lang("r_Birthday")?>:&nbsp;&nbsp;</td>
			<td ><input type=text id="txbirthday" name="birthday" class="txdatec" value="<?=$birthday ?>" /></td>
			<td ></td>
		</tr>
		
		<tr height=36>
			<td width=156 align="right" ><?=lang("r_Tel")?>:&nbsp;&nbsp;</td>
			<td ><input type=text id="txtel1" name="tel" class="txd" value="<?=$tel ?>" /></td>
			<td ><div id="txtel1Tip"></div></td>
		</tr>
		
		<tr height=36>
			<td width=156 align="right" ><?=lang("r_Mobile")?>:&nbsp;&nbsp;</td>
			<td ><input type=text  id="txmobilephone" name="mobilephone" class="txd" value="<?=$mobilephone ?>" /></td>
			<td ><div id="txmobilephoneTip"></div></td>
		</tr>
		
		<tr height=36>
			<td width=156 align="right" ><?=lang("r_Address")?>:&nbsp;&nbsp;</td>
			<td ><input type=text name="address" class="txd" value="<?=$address ?>" /></td>
			<td ></td>
		</tr>
		
		<tr height=36>
			<td width=156 align="right" >Email:&nbsp;&nbsp;</td>
			<td ><input type=text name="email" class="txd" value="<?=$email ?>" /></td>
			<td ></td>
		</tr>
		
		<tr height=25 >
			<td></td>
			<td>
				<input type="submit" value="save"  />
				<input type="reset" value="reset" />
			</td>			
		</tr>	
	</table><BR/><BR/>
	<?php
	echo form_close();
	?>
	
	
</div>
<div class="clear"></div>	
</div>
<script language="javascript">
	
	$.formValidator.initConfig({formid:"formPassword",onerror:function(msg){alert(msg)}});
	$("#txNewpassword,#txCurpassword").formValidator({onshow:"<?=lang('r_info3')?>",onfocus:"Password can't for empty",oncorrect:"Password legal"}).inputValidator({min:4,empty:{leftempty:false,rightempty:false,emptyerror:"Password both sides can't free symbols"},onerror:"The password can't for empty, please confirm"});
	$("#txConfirmpassword").formValidator({onshow:"<?=lang('r_info4')?>",onfocus:"Two password must agree well",oncorrect:"Password consistent"}).inputValidator({min:4,empty:{leftempty:false,rightempty:false,emptyerror:"Password both sides can't free symbols"},onerror:"Repeat the password can't for empty, please confirm"}).compareValidator({desid:"txNewpassword",operateor:"=",onerror:"2 times password is not consistent, please confirm"});
	
</script>
<?php $this->load->view('_footer') ?>